//
//  ScrollPagesContainer.h
//  MyPageControllTest
//
//  Created by apple on 11-10-11.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ScrollPagesContainer;

@protocol ScrollPagesContainerDelegate <NSObject>

- (void) scrollPagesContainerDidChangePage:(ScrollPagesContainer*)container page:(NSInteger)page;
- (void) scrollPagesContainerDidScroll:(ScrollPagesContainer *)container;
- (UIView*) scrollPagesContainerLoadPage:(ScrollPagesContainer*) container forIndex:(NSInteger)index;
- (void) scrollPagesContainerDidFinishedAnimation:(ScrollPagesContainer*) container;

@end


@interface ScrollPagesContainer : UIView <UIScrollViewDelegate>
{
    NSMutableArray*                     m_pageList;
    BOOL                                m_isControlOutside;
    NSInteger                           currentPage;
    NSUInteger                          pageCount;
    id<ScrollPagesContainerDelegate>    delegate;
    UIScrollView*                       scrollView;                     
}
@property (nonatomic, assign) NSInteger                             currentPage;
@property (nonatomic, assign) NSUInteger                            pageCount;
@property (nonatomic, retain) id<ScrollPagesContainerDelegate>      delegate;
@property (nonatomic, retain) UIScrollView*                         scrollView;

@end


